#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

with open("requirements.txt", "r", encoding="utf-8") as fh:
    requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]

setup(
    name="universal-server-monitor",
    version="1.0.0",
    author="Universal Monitor Team",
    author_email="admin@example.com",
    description="通用服务器监控系统，支持邮件告警和Docker部署",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/example/universal-server-monitor",
    packages=find_packages(where="src"),
    package_dir={"": "src"},
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: System Administrators",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Topic :: System :: Monitoring",
        "Topic :: System :: Systems Administration",
    ],
    python_requires=">=3.8",
    install_requires=requirements,
    entry_points={
        "console_scripts": [
            "server-monitor=monitor.server_monitor:main",
            "memory-monitor=monitor.memory_monitor:main",
        ],
    },
    include_package_data=True,
    package_data={
        "monitor": ["config/*.json", "config/*.yaml"],
    },
)